function getUploadFileExt(name) {
    let ext = name.split('.');
    return {
        name: ext[0],
        type: ext[ext.length - 1]
    };
}

module.exports = getUploadFileExt;
